﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BT_DoHoa_Nhom13.ShapeLib
{
    public class MyEllipse:MyShape
    {
        public MyEllipse()
        {
            name = "Ellipse";
        }

        protected override void ActualDraw(MyGraphic graphic)
        {
            int top, left, width, height;
            this.SetConfig(out top, out left, out width, out height);
            graphic.DrawEllipse(left, top,width,height,isFill);
        }

        public override MyShape Clone()
        {
            MyShape copy = new MyEllipse();
            copy.Copy(this);
            return copy;
        }
    }
}
